<template>
    <IModal v-model="defaultValue" :loading="loading" :width="860" title="对接设置">
        <Form :model="data" :label-width="100" :rules="ruleValidate" ref="formCreate">
            <FormItem label="详细地址" prop="address">
                <Input v-model="data.secret" disabled></Input>
            </FormItem>
        </Form>
        <div slot="footer">
            <Button type="primary" icon="ios-add" @click="submit('formCreate')">提交</Button>
            <Button type="warning" icon="md-log-out" @click="defaultValue = false;">返回</Button>
        </div>
    </IModal>
</template>

<script>
    import IForm from "../../../components/content/form";
    import contentDrawer from "../../../mixins/contentDrawer";
    import IModal from "../../../components/content/modal";
    import RemoteSelect from "../../../components/form/remoteSelect";

    export default {
        name: "print",
        mixins: [contentDrawer],
        components: {RemoteSelect, IForm, IModal},
        data() {
            return {
                data: {},
                ruleValidate: {}
            }
        },
        methods: {
            submit(data) {
                this.validate(data).then(() => {
                    this.loading = true;

                });
            }
        }
    }
</script>

<style scoped>

</style>
